﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserArea.master" AutoEventWireup="true" CodeBehind="MonthView.aspx.cs" Inherits="UserInterfaceLayer.User.MonthView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headUser" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentUser" runat="server">
    <div style="padding: 5px; margin: 5px;">
        <table style="padding: 5px;" class="border_black bgcolor_cf width_fill">
            <tr>
                <td>
                    <asp:Button ID="btnPrev" runat="server" Text="" style="margin: 10px;" CssClass="button_prev_48" OnClick="btnPrev_Click"/>
                </td>
                <td style="text-align: center;" class="width_fill">
                    <asp:Label ID="lblCurrent" runat="server" Text="" CssClass="font_2xlarge"></asp:Label>
                </td>
                <td>
                    <asp:Button ID="btnNext" runat="server" Text="" style="margin: 10px;" CssClass="button_next_48" OnClick="btnNext_Click"/>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:ListView ID="lvDays" runat="server" style="padding: 5px; margin: 20px;" class="border_black">
                        <ItemTemplate>
                            <div style="padding: 5px; margin: 5px;" class="border_black bgcolor_f2 font_2xlarge">
                                <%# Eval("DayOfMonth") %> ام
                                (<%# Eval("DayOfWeek") %>)
                                <br />
                                <asp:ListView ID="lvRooms" runat="server" style="padding: 5px; margin: 20px;" class="border_black" DataSource='<%# Eval("ReserveRooms") %>'>
                                    <ItemTemplate>
                                        <div style="width: 120px; height: 100px; padding: 5px; margin: 5px; display: inline-table; text-align: center;" class="border_black">
                                            <div style='height: 100%; background-color: <%# Eval("BackColor") %>; color: <%# Eval("ForeColor") %>;'>
                                                <a href='Room.aspx?RoomID=<%# Eval("Room.ID") %>'><%# Eval("Room.Name") %></a>
                                                <a href='RoomClean.aspx?RoomID=<%# Eval("Room.ID") %>'><%# (bool)Eval("IsClean") ? "تمیز" : "کثیف" %></a>
                                                <asp:ListView ID="lvRequests" runat="server" style="padding: 5px; margin: 20px;" class="border_black" DataSource='<%# Eval("Requests") %>'>
                                                    <ItemTemplate>
                                                        <%# Eval("HeadmanPersonName") %>
                                                        <br />
                                                        <%# Eval("Status") %>
                                                        <br />
                                                        <a href='Request.aspx?RequestID=<%# Eval("RequestID") %>'>...</a>
                                                    </ItemTemplate>
                                                    <LayoutTemplate>
                                                        <div class="font_small">
                                                            <div id="itemPlaceholder" runat="server"></div>
                                                        </div>
                                                    </LayoutTemplate>
                                                </asp:ListView>
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                    <LayoutTemplate>
                                        <div class="font_medium">
                                            <div id="itemPlaceholder" runat="server">
                                            </div>
                                        </div>
                                    </LayoutTemplate>
                                </asp:ListView>
                            </div>
                        </ItemTemplate>
                        <LayoutTemplate>
                            <div class="font_medium">
                                <div id="itemPlaceholder" runat="server">
                                </div>
                            </div>
                        </LayoutTemplate>
                    </asp:ListView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
